
package edu.ar.bases.dvdstore.domainmodel.entities;

import edu.ar.bases.dvdstore.domainmodel.entities.interfaces.IAlquiler;
import edu.ar.bases.dvdstore.domainmodel.entities.interfaces.IDevolucion;
import edu.ar.bases.dvdstore.domainmodel.entities.interfaces.IEvento;




public class Evento implements IEvento {

	private int eventoID;
	public IDevolucion devolucion;
	public IAlquiler alquiler;
	private Dvd dvd;
	private Cliente cliente;

	public Evento(){

	}

	public void finalize() throws Throwable {

	}

	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#getEventoID()
	 */
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#getEventoID()
	 */
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#getEventoID()
	 */
	public int getEventoID() {
		return eventoID;
	}


	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#setEventoID(int)
	 */
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#setEventoID(int)
	 */
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#setEventoID(int)
	 */
	public void setEventoID(int eventoID) {
		this.eventoID = eventoID;
	}

	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#getDevolucion()
	 */
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#getDevolucion()
	 */
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#getDevolucion()
	 */
	public IDevolucion getDevolucion() {
		return devolucion;
	}


	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#setDevolucion(edu.ar.bases.dvdstore.domainmodel.entities.interfaces.IDevolucion)
	 */
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#setDevolucion(edu.ar.bases.dvdstore.domainmodel.entities.interfaces.IDevolucion)
	 */
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#setDevolucion(edu.ar.bases.dvdstore.domainmodel.entities.interfaces.IDevolucion)
	 */
	public void setDevolucion(IDevolucion devolucion) {
		this.devolucion = devolucion;
	}


	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#getAlquiler()
	 */
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#getAlquiler()
	 */
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#getAlquiler()
	 */
	public IAlquiler getAlquiler() {
		return alquiler;
	}

	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#setAlquiler(edu.ar.bases.dvdstore.domainmodel.entities.interfaces.IAlquiler)
	 */
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#setAlquiler(edu.ar.bases.dvdstore.domainmodel.entities.interfaces.IAlquiler)
	 */
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#setAlquiler(edu.ar.bases.dvdstore.domainmodel.entities.interfaces.IAlquiler)
	 */
	public void setAlquiler(IAlquiler alquiler) {
		this.alquiler = alquiler;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + eventoID;
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		final Evento other = (Evento) obj;
		if (eventoID != other.eventoID)
			return false;
		return true;
	}

	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#getDvd()
	 */
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#getDvd()
	 */
	public Dvd getDvd() { return dvd; }

	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#setDvd(edu.ar.bases.dvdstore.domainmodel.entities.Dvd)
	 */
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#setDvd(edu.ar.bases.dvdstore.domainmodel.entities.Dvd)
	 */
	public void setDvd(Dvd dvd) { this.dvd = dvd; }

	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#getCliente()
	 */
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#getCliente()
	 */
	public Cliente getCliente() { return cliente; }

	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#setCliente(edu.ar.bases.dvdstore.domainmodel.entities.Cliente)
	 */
	/* (non-Javadoc)
	 * @see edu.ar.bases.dvdstore.domainmodel.entities.IEvento#setCliente(edu.ar.bases.dvdstore.domainmodel.entities.Cliente)
	 */
	public void setCliente(Cliente cliente) { this.cliente = cliente; }

}